﻿<%@ Page Title="Usuarios del sistema" Language="C#" MasterPageFile="~/Site.Master"
	AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TraceThisItem.WebUI.Account._Default" %>

<asp:Content ID="Head" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Body" ContentPlaceHolderID="MainContent" runat="server">
	<h2>
		Usuarios del sistema</h2>
	<p>
		<asp:HyperLink NavigateUrl="~/Account/Register.aspx" runat="server" Text="Registrar usuario" /></p>
	<asp:GridView ID="UserGridView" runat="server" DataSourceID="UserDataSource" AutoGenerateColumns="False"
		DataKeyNames="Username" Width="100%">
		<Columns>
			<asp:BoundField DataField="UserName" HeaderText="Nombre de usuario" SortExpression="UserName" HeaderStyle-Width="20%" />
			<asp:BoundField DataField="Firstname" HeaderText="Nombre" SortExpression="Firstname" />
			<asp:BoundField DataField="Lastname" HeaderText="Apellido" SortExpression="Lastname" />
		</Columns>
	</asp:GridView>
	<asp:ObjectDataSource ID="UserDataSource" runat="server" OldValuesParameterFormatString="original_{0}"
		OnObjectCreating="UserDataSource_ObjectCreating" SelectMethod="GetUsers" TypeName="TraceThisItem.Domain.Facade" />
</asp:Content>
